<%@ page language="java" import="java.util.*" import="com.ccxe.zebra.web.*"
	contentType="text/html;charset=UTF-8"%>
<%@include file="/common/taglib.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
	
		<title></title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Language" content="zh-cn">
		<script type="text/javascript" src="/js/base.js"></script>
	<link id="editCss" rel="stylesheet" type="text/css" href="css/style.css"  />
		<link rel="stylesheet" type="text/css" href="/css/style.css">
	<script type="text/javascript">
		function quit(){
			var form = document.getElementById("quitForm");
			form.submit();
		}
	</script>
	
	
	
	</head>
	<body>
<!--start 网页标题 -->
  <div class="head_bg">
	<div class="head_left"></div>
    
    <div class="head_right">
		<div class="head_right_l"></div>
		<div class="rightBox">
			<img src="/images/head_ico.gif" align="middle" />
			欢迎您：
			<span>${currUser.userName }</span> |
			<img src="/images/userinfo_ico.gif" align="middle" />
			上次登录时间 :
			<span>2009-11-19</span>
			<form name="quitForm" id="quitForm" action="/login" method="post">
				<input type="hidden" name="quit" id="quit" value="true">
			  <a href="javascript:quit()">退出</a>
			</form>
		</div>
	</div>
</div>		
<!--end 网页标题 -->		
		<table border="1">
			<c:forEach items="${data}" var="data" >
				<tr>
					<td><a href="/crawler/showPage.jsp?url=${data.key}" target="_blank">
							<c:if test="${!empty data.value.title}">${data.value.title}</c:if>
							<c:if test="${empty data.value.title}">${data.key}</c:if>
						</a>
					</td>
					<td>
						<c:if test="${!empty data.value.pages}">
							<c:forEach items="${data.value.pages }" var="page">
								<a href="/crawler/showPage.jsp?url=${page.url }" target="_blank">${page.title }</a><br/>
							</c:forEach>
						</c:if>
						<c:if test="${empty data.value.pages}">
								没有找到相应记录！<br/>请确认URL的格式是否正确，或该链接是否可以访问！
						</c:if>
					</td>
				</tr>
			</c:forEach>
		</table>
		
		
  	<div class="footer">CopyRight &copy; 中诚信资讯科技有限公司</div>	
	</body>
</html>
